package com.oauth.common.server.beans;

import com.google.appengine.api.utils.SystemProperty;

public class OAuthConfigBean {
	private String mConsumerKey;
	private String mConsumerSecret;
	private String mProductionCallBackUrl;
	private String mDevelopmentCallBackUrl;
	
	/**
	 * @return the consumerKey
	 */
	public String getConsumerKey() {
		return mConsumerKey;
	}
	/**
	 * @param pConsumerKey the consumerKey to set
	 */
	public void setConsumerKey(String pConsumerKey) {
		mConsumerKey = pConsumerKey;
	}
	/**
	 * @return the consumerSecret
	 */
	public String getConsumerSecret() {
		return mConsumerSecret;
	}
	/**
	 * @param pConsumerSecret the consumerSecret to set
	 */
	public void setConsumerSecret(String pConsumerSecret) {
		mConsumerSecret = pConsumerSecret;
	}
	
	/**
	 * @return the callBackUrl
	 */
	public String getCallBackUrl() {
		if (SystemProperty.environment.value() ==
		    SystemProperty.Environment.Value.Production) {
			return mProductionCallBackUrl;
		}else{
			return mDevelopmentCallBackUrl;
		}
	}
	
	
	/**
	 * @param pProductionCallBackUrl the productionCallBackUrl to set
	 */
	public void setProductionCallBackUrl(String pProductionCallBackUrl) {
		mProductionCallBackUrl = pProductionCallBackUrl;
	}
	/**
	 * @param pDevelopmentCallBackUrl the developmentCallBackUrl to set
	 */
	public void setDevelopmentCallBackUrl(String pDevelopmentCallBackUrl) {
		mDevelopmentCallBackUrl = pDevelopmentCallBackUrl;
	}

	
}
